package com.rightsidetech.activity.mapper;

import com.rightsidetech.activity.entity.MtActivityRule;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MtActivityRuleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MtActivityRule record);

    int insertSelective(MtActivityRule record);

    MtActivityRule selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MtActivityRule record);

    int updateByPrimaryKey(MtActivityRule record);

    Map<String, String> selectNameRule(@Param("actId") Long actId,@Param("mold")String mold);

    String selectRule(@Param("actId") Long actId,@Param("mold")String mold);

    MtActivityRule selectActRule(@Param("actId") Long actId,@Param("mold")String mold);

    MtActivityRule selectActRuleByField(@Param("actId") Long actId,@Param("field") String field);

    int deleteByActId(Long actId);

    List<MtActivityRule> selectRuleList(@Param("actId")Long actId,@Param("mold") String mold);

}